/*
 * @Author: liuxinyea
 * @Date: 2025-04-02 09:46:48
 * @LastEditors: liuxinyea
 * @LastEditTime: 2025-04-03 10:36:12
 * @Description: 描述
 */
var a = [];
for (var i = 0; i < 10; i++) {
  var j = i
  a[i] = function () {
    console.log(j);
  };
}
a[6](); // 10
